package com.ruoyi.party.system.validate;
/**
 * 自定义校验时间起止
 * @author 黄宝康
 *格式19:00:00-21:00:00
 */

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Documented
@Constraint(validatedBy = { TimeRangekValidator.class })
@Target({ ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface TimeRange {
	// 默认错误消息
	String message() default "非法时间区间";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};

}
